﻿<Window x:Class="AutoUpgradeManager.ControlForm.Window_ServiceSetup"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:xl="clr-namespace:AutoUpgradeManager.ControlForm"
        Title="服务器项目配置" Height="318"  Width="476" Style="{DynamicResource NoneBorderWindowNotMax}" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <ToolBar Margin="2,5,5,0" Grid.Row="0" Grid.Column="0" Name="toolButtons">
            <Button Height="30" Name="Add" Click="ToolBarButtn_Click">添加</Button>
            <Button Height="30" Name="Edit" Click="ToolBarButtn_Click">修改</Button>
            <Button Height="30" Name="Delete" Click="ToolBarButtn_Click">删除</Button>
            <Button Height="30" Name="Close" Click="ToolBarButtn_Click">关闭</Button>
        </ToolBar>
        <DockPanel Margin="5,0,5,5" Grid.Row="1" Grid.Column="0" LastChildFill="True" >
            <StackPanel Name="Setpanel" Orientation="Horizontal" DockPanel.Dock="Top" Visibility="Collapsed" Height="40" DataContext="{Binding ElementName=Lvw_Info,Path=SelectedItem}" >
                <Label Margin="8,10,8,0" Content="项目名称："/>
                <TextBox Name="Txt_Name"  Margin="-10,8,0,10" Width="98"></TextBox>
                <Label Margin="8,10,8,0" Content="项目路径："/>
                <TextBox Name="Txt_Path"  Margin="-10,8,0,10" Width="98"></TextBox>
                <Button Name="Btn_Add" Click="Btn_Add_Click" Margin="5,0,0,3" Height="23" Width="52">添加</Button>
                <Button Name="Btn_Cancel" Click="Btn_Cancel_Click" Margin="5,0,5,3" Height="23" Width="52">取消</Button>
            </StackPanel>
            <ListView IsSynchronizedWithCurrentItem="True"  Name="Lvw_Info" DockPanel.Dock="Bottom" HorizontalContentAlignment="Stretch">
                <ListView.View>
                    <GridView>
                        <GridViewColumn DisplayMemberBinding="{Binding Path=PrjName}" Width="149">项目名称</GridViewColumn>
                        <GridViewColumn DisplayMemberBinding="{Binding Path=PrjPath}" Width="280">服务器项目存放路径</GridViewColumn>
                    </GridView>
                </ListView.View>
            </ListView>
        </DockPanel>
    </Grid>
</Window>
